package com.bjwl.dao;

import com.bjwl.pojo.Staff;
import com.bjwl.pojo.vo.AdminOrdersQueryVo;
import com.bjwl.utils.PageBean;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: dzx
 * @Date:Create：in 2020/4/10 9:48
 * @Description:
 * @Modified By：
 * @Version: 1.0
 */
@Repository
public interface StaffMapper {

    /**
     * 根据分店id查询员工
     * @param bssign
     */
    public List<Staff> findStaffByBstoreid(Integer bssign);

    /**
     * 根据当前sid查询staff信息
     * @param sid
     * @return
     */
    public Staff updateShowStaff(Integer sid);

    /**
     * 根据sid修改当前信息
     * @param staff
     */
    void updateStaffByid(Staff staff);

    /**
     * 查询总条数
     * @param adminOrdersQueryVo
     * @return
     */
    int getTotalRecord(AdminOrdersQueryVo adminOrdersQueryVo);

    /**
     *
     * @param pageBean
     * @param adminOrdersQueryVo
     * @return
     */
    List<Staff> findAllStaff(PageBean<Staff> pageBean, AdminOrdersQueryVo adminOrdersQueryVo);

    /**
     * 添加staff
     * @param staff
     */
    void addStaff(Staff staff);

    /**
     * 根据sid删除此条数据
     * @param sid
     */
    void deleteStaff(Integer sid);
    Integer findAllStaffTotalRecord();
    Integer staffCount(Integer bssign);



    /**
     * 获取
     * @return
     */
    Integer getTotalRecordBr(Integer bssign,Integer staffid,String staffvalue,String wstarttime,String wendtime);
    List<Staff> findAllStaffBr(PageBean<Staff> pageBean, Integer bssign,Integer staffid,String staffvalue,String wstarttime,String wendtime);


    int getTotalRecordBrSettle(Integer bssign, Integer sid,String staffname);

    List<Staff> findAllStaffBrSettle(PageBean<Staff> pageBean, Integer bssign, Integer card ,String staffname);

    Staff finStaffByCard(Integer bssign , String staffname);

    Integer findAllStaffByCard(Integer card);

    List<Staff> findAllStaffSettle(Integer bssign);

    Integer getTotalRecordBrStaff(Integer bssign, String staffname, Integer card);
    List<Staff> findStaffBySettle(PageBean<Staff> pageBean,Integer bssign,String staffname,Integer card);

    Staff finStaffByCardS(Integer bssign, String card);
}
